package nc.ui.gsp.hf051615;

import java.awt.Container;
import nc.ui.trade.bsdelegate.BusinessDelegator;
import nc.ui.trade.business.HYPubBO_Client;
import nc.vo.pub.SuperVO;

public class ClientBusinessDelegator extends BusinessDelegator {

	private Container parent = null;
	
	public ClientBusinessDelegator(Container parent ){
		this.parent = parent;
	}
	@Override
	public SuperVO[] queryHeadAllData(Class headClass, String strBillType,
			String strWhere) throws Exception {	
		String where = "";
		if(strWhere!=null && strWhere.length()>0){
			where =  " pk_xxhz_h in (select distinct GSP_XXHZ_H.pk_xxhz_h from GSP_XXHZ_H ,GSP_XXHZ_B " +
					" where GSP_XXHZ_H.pk_xxhz_h = GSP_XXHZ_B.pk_xxhz_h and  isnull(GSP_XXHZ_H.dr,0)=0 and isnull(GSP_XXHZ_B.dr,0) = 0 "+
					" and  "+strWhere+") ";
		}
		SuperVO[] vo = HYPubBO_Client.queryByCondition(headClass, where);
		return vo;
	}
}
